//实现radio对EvemtEmitter的继承
//添加start stop事件
//start直接触发，stop延时5秒钟触发
var events = require("events");
var util = require("util");
var Emitter = events.EventEmitter;

function Radio(inforObj){
    this.radioName = inforObj.radioName;
    Emitter.call(this);
}

util.inherits(Radio, Emitter);//继承EventEmitter属性方法
// Radio.prototype = Emitter.prototype;
// Radio.prototype.start = function(){
//     console.log(this.radioName + "start");
// }
// Radio.prototype.stop = function(){
//     console.log(this.radioName + "stop");
// }
module.exports = Radio;
